<?php 
include 'connect/connect.php';
$username = $_SESSION['username'];
$tid=$_GET['id'];
$query = "DELETE FROM apps WHERE id='$tid'";
//var_dump($query);
$result = mysql_query($query) or die("Error executing '$query':" . mysql_error());
?>
<p class="error">App deleted!</p>